package com.dq.controller;

import com.dq.domain.sys.user.user.base.SysUser;
import com.dq.service.BaseServices;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Controller公共组件
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2016年11月9日 下午9:42:26
 */
public abstract class AbstractController extends BaseServices {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected SysUser getUser() {
        return shiroService.getUser();
    }

    protected Long getUserId() {
        return getUser().getId();
    }

    protected Long getDeptId() {
        return getUser().getSection().getId();
    }
}
